<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="sky" uri="/WEB-INF/custom.tld" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<html>
<head>
    <link rel="stylesheet" type="text/css" href="/resources/style1.css" />
    <link rel="stylesheet" type="text/css" href="resources/header.css" />
    <link rel="stylesheet" type="text/css" href="/resources/flightInfo.css" />
    <script src="/resources/jquery-2.0.0.js"></script>
    <script src="/resources/script.js" ></script>
    <script src="/resources/flightInfo.js"></script>
</head>
<body>
<div id="wrapper">
    <sky:include url="components/header.jsp"/>
    <div id="page">
        <div id="content">
            <div class="post">
                <c:set var="step" value="4" scope="request" />
                <jsp:include page="components/bookingSteps.jsp" />
                    <spring:message code="label.payment" />:
                    <hr>
                    <spring:message code="label.oneManCost" />:
                    ${adultCost}
                    <spring:message code="label.passangers" />:
                    ${adultNumber}
                    <spring:message code="label.all" />:
                    ${adultNumber*adultCost}
                    <hr>
                    <spring:message code="label.oneChildCost" />:
                    ${childCost}
                    <spring:message code="label.passangers" />:
                    ${childNumber}
                    <spring:message code="label.all" />:
                    ${childNumber*childCost}
                    <hr>
                    <spring:message code="label.all" />:
                    ${childNumber*childCost+adultNumber*adultCost}
                <form:form action="addCard" commandName="card">
                    <form:input path="cardId" />
                    <input type="submit" value="Add" />
                </form:form>
                <c:if test="${cards != null}">
                    <form:form action="confirmCard" commandName="card">
                        <form:select path="cardId">
                            <form:options items="${cards}" />
                        </form:select>
                        <input type="submit" value="Use" />
                    </form:form>
                </c:if>
            </div>
            <div style="clear: both;">&nbsp;</div>
        </div>
        <!-- end #content -->
        <jsp:include page="components/sidebar.jsp" />
        <!-- end #sidebar -->
        <div style="clear: both;">&nbsp;</div>
    </div>
</div>
<div id="footer-content">&copy; Кси</div>
<div id="footer"></div>
</body>
</html>